module.exports = {

  // 选项...
  publicPath: process.env.NODE_ENV === 'production' ? '/' : '/',
  lintOnSave: false,
  devServer: {
    disableHostCheck: false,
    overlay: {
      warnings: false,
      errors: false,
    },
    proxy: {
      // proxy: "http://192.168.10.108:8080/"
      '/api': {
        target: 'https://d-huboshi.bigchun.com/',
        ws: true,
        changeOrigin: true,
      },
    },
  },
  configureWebpack: {
    externals: {
      prismplayer: 'prismplayer',
    },
  },
};
